package com.ljy.my_study.book.tom.软件架构设计原则.合成复用原则.two;

public class ProductDao {

    private DBConnection dbConnection;

    public void setDbConnection(DBConnection dbConnection) {
        this.dbConnection = dbConnection;
    }

    public void addProduct(){
        String connection= dbConnection.getConnection();
        System.out.println("使用"+connection+"增加产品");
    }
}
